export function askGPT(content: string) {
  return fetch('https://open.bigmodel.cn/api/paas/v4/chat/completions', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer 6bed0d89b36ebca95828f2309547e698.9Lo2velanwxXWg9j`,
    },
    body: JSON.stringify({
      model: 'glm-4',
      stream: true,
      messages: [
        {
          role: 'user',
          content: content,
        },
      ],
    }),
  });
}
